// 打出的手牌二
class outPoker2 extends eui.Component{
    public constructor(){
        super();
        this.once(eui.UIEvent.COMPLETE,this.onComplete,this);
        this.skinName = "src/Game/gameRoom/centerPoker/outPoker2Skin.exml";
    }
    private onComplete(){
        this.touchChildren = false;
    }
    private pokerValue:eui.Image;
    // public setContent(_skinName:string){
    //     this.pokerValue.source = _skinName;
    // }
    public setContent(textureName: string){
        console.log('textureName', textureName)
        if (textureName === '') {
            return
        }
        const cache = GameData.centeroutPokerCache.find(cache => cache.name === textureName)
        if (cache) {
            this.pokerValue.texture = cache.texture
        }
    }
}